import request from '@/utils/request'

export function findAllScenicspotlistPage(page) {
  return request({
    url: '/findAllScenicspotlistPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        jdmc: page.pd.jdmc,
        jddz: page.pd.jddz
      },
      showCount: page.showCount,
      totalPage: 0,
      totalResult: 0
    }
  })
}

export function getDictPgListPage(page) {
  return request({
    url: '/getDictPgListPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        zdbh: page.pd.zdbh,
      },
      showCount: 9999,
      totalPage: 0,
      totalResult: 0
    }
  })
}

export function addScenicspot(params) {
  return request({
    url: '/addScenicspot',
    method: 'post',
    data:params,
  })
}

export function updateScenicspot(params) {
  return request({
    url: '/updateScenicspot',
    method: 'post',
    data:params,
  })
}
export function findScenicspotById(params) {
  return request({
    url: '/findScenicspotById',
    method: 'post',
    data:params,
  })
}

export function delScenicspot(params) {
  return request({
    url: '/delScenicspot',
    method: 'post',
    data:params,
  })
}



